<script type="text/javascript">
	$(function() {
		$("#optimistic").click(function() {
			$.ajax({
				type:"POST",
				url:"<?=base_url()?>index.php/team/optimistic",
				data:"teamId=<?=$rs['teamId']?>",
				success:function() {
					location.reload();
				}
			});
		});
		$("#care").click(function() {
			$.ajax({
				type:"POST",
				url:"<?=base_url()?>index.php/team/care",
				data:"teamId=<?=$rs['teamId']?>",
				success:function() {
					location.reload();
				}
			});
		});
		$("#applyToTeam").click(function() {
			$.ajax({
				type:"POST",
				url:"<?=base_url()?>index.php/team/applyJoinToTeam",
				data:"teamId=<?=$rs['teamId']?>",
				success:function() {
					alert("申请成功");
				}
			});
		});
	})
</script>
		<div class="content">
		<div class="tdzy_lf">
			<div class="tdzy_lfd1">
                <div class="tdzy_img"></div>
				<h3><?=$rs['teamName']?></h3>
				<p class="tdzy_p1"><a href="javascript:void(0);" id="care">+在意</a><strong>(<?=$rs['care']?>)</strong></p>
				<p class="tdzy_p1"><a href="javascript:void(0);" id="optimistic">+看好</a>(<?=$rs['optimistic']?>)</p>
				<p class="tdzy_p2"><input type="button" id="applyToTeam" class="tdzy_put" /></p>
			</div>
			
			<div class="bmlf_lf1">
				<ul>
					<li class="lf1_hover1"><a href="<?=base_url()?>index.php/team/teamYearbook/<?=$rs['teamId']?>" target="_blank"><strong>年鉴</strong></a></li>
					<li class="lf1_hover2"><a href="<?=base_url()?>index.php/team/teamPhotowall/<?=$rs['teamId']?>" target="_blank"><strong>照片墙</strong></a></li>
					<li class="lf1_hover8"><a href="#"><strong>团体成员</strong></a></li>
				</ul>
			</div><!-- end bmlf_lf1 -->
		</div><!-- end tdzy_lf -->
	
		<div class="tdzy_rg">
			
		    <div class="clear"></div>
        	<div>
            	<table width="100%">
            	    <tr>
                    	<td width="15%" style="padding-left:20px;">头像</td>
                        <td width="10%" style="padding-left:5px;">姓名</td>
                        <td width="10%">性别</td>
                        <td>个人标签</td>
                        <td width="10%"></td>
                    </tr>
                </table>
            </div>
			<?php
				foreach($users as $user) {
			?>
				<div class="split_line"></div>
				<div style="height:62px;">
					<table width="100%">
						<tr>
							<td width="15%"><img src="<?=base_url()?>assets/<?=$user['headIcon']?>" /></td>
							<td width="10%"><?=$user['nickName']?></td>
							<td width="10%" style="padding-left:3px;"><?=$user['sex']?></td>
							<td><?=$user['tags']?></td>
							<td width="10%"><a href="<?=base_url()?>index.php/user/index/<?=$user['userId']?>" target="_blank" class="fwzy">访问主页</a></td>
						</tr>
					</table>
				</div>
				<div class="split_line"></div>
			<?
				}
			?>
		</div><!-- end tdzy_rg -->
		
	</div><!-- end content -->
	
	<div class="footer">
		<p class="foot_p">Copyright © 2013 湾湾网. All Rights Reserved. 冀ICP备12021992号</p>
	</div>
</div><!-- end wrap -->
</body>
</html>
